package com.qf.service.impl;

import com.qf.dao.UserAndBookDao;
import com.qf.service.UserAndBookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 * @author 阿亘
 * @date 2023/07/14
 */
@Service("userAndBookService")
public class UserAndBookServiceImpl implements UserAndBookService {
    @Resource
    private UserAndBookDao userAndBookDao;

    @Override
    public Integer borrowBook(Integer bookid, Integer userid) {
        return userAndBookDao.borrowBook(bookid,userid);
    }

    @Override
    public Integer retuenBook(Integer bookid, Integer userid) {
        return userAndBookDao.retuenBook(bookid,userid);
    }

    @Override
    public Integer checkIfBorrow(Integer bookid, Integer userid) {
        return userAndBookDao.checkIfBorrow(bookid,userid);
    }
}
